package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhangyl
 * @date 2022/6/134
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OperateConfigDto {


    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 移动的目标位置
     */
    private Integer targetId;

    /**
     * 是否启用：1：启用；0：不启用
     */
    @Max(value = 1,message = "isEnable只能是0或1")
    @Min(value = 0,message = "isEnable只能是0或1")
    private Integer isEnable;


    @NotBlank(message = "actionValue不能为空")
    private String actionValue;



}
